package org.phalanx.server.game;

import java.util.Date;

import org.phalanx.map.PhalanxMap;
import org.phalanx.server.ServerCache.Cacheable;

public class PhalanxMapCacheWrapper implements Cacheable{
	private PhalanxMap pMap;
	private Date lastAccessed;
	
	public PhalanxMapCacheWrapper(PhalanxMap pMap){
		setMap(pMap);
		lastAccessed = new Date();
	}
	
	public Date getLastAccess(){
		return lastAccessed;
	}
	
	public void setLastAccess(Date lastAccessed){
		this.lastAccessed = lastAccessed;
	}
	
	public void setMap(PhalanxMap pMap){
		this.pMap = pMap;
	}
	
	public PhalanxMap getMap(){
		return pMap;
	}
	@Override
	public Integer getId() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public void setId(Integer id) {
		// TODO Auto-generated method stub
		
	}

}
